package com.example.senior_config.controller;

import com.example.senior_config.pojo.DemoObj;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ljw
 * @description
 * @date 2021/9/9 7:44
 */
@RestController
public class ConverterController {

    /**
     * 通过自定义的 MyMessageConverter 转换数据
     * @param 
     * @author ljw
     * @date 2021/9/9 7:48 
     */
    @RequestMapping(value = "/getDemoObj", method = RequestMethod.POST, produces = {"application/x-wisely"})
    public DemoObj getDemoObj(@RequestBody DemoObj demoObj) {
        return demoObj;
    }
}
